import { getStore, setStore } from "@/util/store";

const common = {
  state: {
    breadcrumb: getStore({ name: "breadcrumb" }) || [],
  },
  actions: {
    SetBreadcrumb: ({ state }, breadcrumb = {}) => {
      state.breadcrumb = breadcrumb;
      setStore({ name: "breadcrumb", content: state.breadcrumb });
    },
  },
};
export default common;
